﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace BSC_OTC_Management.Forms
{
    public partial class FrmTestReportOTC : Form
    {

        DataTable TBL_RP = new DataTable("TBL_RP");

        public FrmTestReportOTC()
        {
            InitializeComponent();
        }

        public DataTable dtTable()

        {

            //add colums for TBL_RP
            TBL_RP.Columns.Add("MAKH");
            TBL_RP.Columns.Add("MATP");

            //create and add new Rows
            DataRow rowValue = TBL_RP.NewRow();
            DataRow rowDataType = TBL_RP.NewRow();

            rowValue["MATP"] = txt_tp.Text;
            rowDataType["MATP"] = "VARCHAR";

            rowValue["MAKH"] = txt_kh.Text;
            rowDataType["MAKH"] = "VARCHAR";

            TBL_RP.Rows.Add(rowValue);
            TBL_RP.Rows.Add(rowDataType);

            return null;
        }
    }
}
